﻿<%@ Control Language="C#" EnableViewStatE="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<script type="text/javascript">
        function select_project1(userType) {
            var url = '../PGManage/GetCompanyList2.aspx?userType='+escape(userType)+"&rd="+Math.random() ;
            var feature = "dialogWidth:" + 500 + "px;dialogHeight:" + 450 + "px;scroll:yes;status:no;help:no;center:1";
            var project_info = window.showModalDialog(url, '', feature);
            if (project_info != undefined && project_info.length > 1) {
            
          var returnval=project_info;
          var returnvalue=returnval.split(',');
          
          document.getElementById("project_id").value="";
            document.getElementById('Text1').value="";
            document.getElementById('Text2').value="";
            document.getElementById('<%=txt评估机构.ClientID %>').value="";
            
              document.getElementById('project_id').value =returnval;
              for(var i=0;i<returnvalue.length;i++){
              var temp=returnvalue[i];
              var tempone=temp.replace("|",",").split(',');
              document.getElementById('Text1').value+=tempone[0]+",";
              document.getElementById('Text2').value+=tempone[1]+",";
                document.getElementById('<%=txt评估机构.ClientID %>').value = 
                document.getElementById('Text2').value.substring(0,document.getElementById('Text2').value.length-1);
              }       
            }
        }
        function cktext(){
            var t1=document.getElementById('<%=txt评估机构.ClientID %>').value;
            var t2=document.getElementById('<%=txt发送内容.ClientID %>').value;
            if(t1!=null&&t1!=""&&t2!=null&&t2!=""){
                return true;
            }else{
                alert('评估机构必须选择，并且发送内容不得为空！');
                return false;
            }
        }
    </script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
        margin-top: 1px">
        <tr>
            <td valign="middle" height="30">
                <font id="Font1" style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left; color: black;text-indent:1em;" runat="server">
                    站内短消息发送 </font>
            </td>
        </tr>
    </table>
<table border="1" cellpadding="0" cellspacing="0" id="compensationfundestimate" style="border-collapse: collapse;
            table-layout: fixed; width: 99%; text-align: center;" class="window_tab_list">
        <tr style="height:30px;">
            <th colspan="4" style="text-align: center; line-height: 20px; ">
                站内短消息发送
                </th>
        </tr>
        <tr>
            <td>发送至评估机构：</td>
            <td colspan="2"><asp:TextBox ID="txt评估机构" runat="server" TextMode="MultiLine" Width="100%" Height="75px" onfocus="this.blur()"></asp:TextBox></td>
            <td align="left">&nbsp;&nbsp;<input type="button" value="选择" onclick="select_project1('评估机构')" /></td>
        </tr>
        <tr>
            <td>发送标题：</td>
            <td colspan="3" align="left">
                <asp:TextBox ID="txt发送标题" runat="server" Width="80%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>发送内容：</td>
            <td colspan="3">
                <asp:TextBox ID="txt发送内容" runat="server" TextMode="MultiLine" Width="100%" Height="75px"></asp:TextBox>
            </td>
        </tr>
        <tr style="height:30px;">
            <td colspan="4">
                <asp:Button ID="btnSend" runat="server" Text="发送" OnClientClick="return cktext();" />
            </td>
        </tr>
    </table>
    <div style="display:none;">
        <input type="text" value="" id="project_id" />
        <input type="text" value="" id="Text1" />
        <input type="text" value="" id="Text2" />
    </div>
